<?php
  $yhendus=new mysqli("localhost", "if13", "ifikad", "if13_egert_k");
  if(isSet($_REQUEST["eesnimi"])){
    $kask=$yhendus->prepare("INSERT INTO ankeet (eesnimi, perekonnanimi, email) VALUES (?, ?, ?)");
    $kask->bind_param("sss", $_REQUEST["eesnimi"], $_REQUEST["perekonnanimi"], $_REQUEST["email"]);
    $kask->execute();
}
    $yhendus->close();